Frequently Asked Questions
1 Which Unity version is supported by XREAL SDK?​
Unity 2021.3.x and above. The LTS(long term support) Unity version is recommended.
2 The app is not being able to be opened through MyGlasses, showing "Currently, your app is not supported on this device"​
Please add the following permission in the AndroidManifest.xml:
<meta-data android:name="com.nreal.supportDevices" android:value="1|XrealLight|2|XrealAir" />
3 Error occurs when building an apk​
UnityException: Error
mainTemplate.gradle file is using the old aaptOptions noCompress property definition which does not include types defined by unityStreamingAssets constant.
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)
Modify the file mainTemplate.gradle:
aaptOptions {
noCompress = ['.unity3d', '.ress', '.resource','unityStreamingAssets', '.obb'**STREAMING_ASSETS**]
}**SIGN**
4 How to debug the application in Unity Editor​
- Install XR device simulator in Package Manager

-
Drag the Prefab into the scene you need to debug
5 URP Project​
-
Install URP package
- Open Unity Editor.
- Enter Menu Window > Package Manager.
- In Package Manager, search for Universal RP or Universal Render Pipeline.
- Click Install to install the URP package.
-
Create and configure URP render pipeline assets
- Right-click any folder in the Project window and select: Create > Rendering > URP Asset (with Universal Renderer). • This will generate two files: URP Asset and Renderer Asset.
- Open Edit > Project Settings > Graphics, set the Scriptable Render Pipeline Settings field to the URP Asset you just created.
- Enter Edit > Project Settings > Quality, for each quality setting (e.g., Low, Medium, High), set the Render Pipeline Asset to your URP Asset.
-
Update materials to URP
URP uses different Shaders than Built-in, so materials need to be updated.
Find the materials that need to be updated (displayed as pink) in the project, select them one by one by holding down the command key.
- Select Menu Edit > Rendering >Materials > Convert Selected Built-in Materials to URP
- This will automatically convert the materials in the project to URP compatible materials.
Note: You may need to manually adjust certain material effects to match the original appearance.